package org.k.reloadable.demo.web;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by hengxianwang on 16-12-21.
 */
@Controller
@RequestMapping("/demo")
public class DemoControllor {
    @Value("${key1}")
    private String key1;

    @RequestMapping("/key1")
    @ResponseBody
    public String getKey1(){
        return key1;
    }
}
